package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 访客邀请 对象 zy_visitor
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class Visitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long visitorId;

    /** 小区id */
    @Excel(name = "小区id")
    private Long communityId;

    private Community community;
    /** 访客姓名 */
    @Excel(name = "访客姓名")
    private String visitorName;

    /** 访客手机号 */
    @Excel(name = "访客手机号")
    private String visitorPhoneNumber;

    /** 到访时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到访时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitorDate;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createById;

    /** 创建人openid */
    @Excel(name = "创建人openid")
    private String createByOpenId;

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public void setVisitorId(Long visitorId)
    {
        this.visitorId = visitorId;
    }

    public Long getVisitorId() 
    {
        return visitorId;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setVisitorName(String visitorName) 
    {
        this.visitorName = visitorName;
    }

    public String getVisitorName() 
    {
        return visitorName;
    }
    public void setVisitorPhoneNumber(String visitorPhoneNumber) 
    {
        this.visitorPhoneNumber = visitorPhoneNumber;
    }

    public String getVisitorPhoneNumber() 
    {
        return visitorPhoneNumber;
    }
    public void setVisitorDate(Date visitorDate) 
    {
        this.visitorDate = visitorDate;
    }

    public Date getVisitorDate() 
    {
        return visitorDate;
    }
    public void setCreateById(Long createById) 
    {
        this.createById = createById;
    }

    public Long getCreateById() 
    {
        return createById;
    }
    public void setCreateByOpenId(String createByOpenId) 
    {
        this.createByOpenId = createByOpenId;
    }

    public String getCreateByOpenId() 
    {
        return createByOpenId;
    }

    @Override
    public String toString() {
        return "Visitor{" +
                "visitorId=" + visitorId +
                ", communityId=" + communityId +
                ", community=" + community +
                ", visitorName='" + visitorName + '\'' +
                ", visitorPhoneNumber='" + visitorPhoneNumber + '\'' +
                ", visitorDate=" + visitorDate +
                ", createById=" + createById +
                ", createByOpenId='" + createByOpenId + '\'' +
                '}';
    }
}
